#ifndef CALCWINDOW_H
#define CALCWINDOW_H
#include <QMainWindow>
#include <QTextEdit>
#include <QLineEdit>
#include <QPushButton>
#include <QComboBox>
#include <QDomDocument>
#include <QLabel>
#include <QBoxLayout>
//#include "AddProductWindow.h"

class CalcWindow : public QWidget
{
    Q_OBJECT

private:
    //QWidget centralWidget;
    QComboBox *inputProduct;
    QLineEdit *inputAddedProduct;
    QLineEdit *inputWeight;
    QLineEdit *outputFat;
    QLineEdit *outputProtein;
    QLineEdit *outputCarbohydrate;
    QLineEdit *outputEnergy;
    QPushButton *calculateButton;
    QPushButton *addButton;
    QDomDocument docProd;
   // AddProductWindow window;
    QPushButton *saveAdded;
    QPushButton *cancel;
    QLabel *inputProductLabel;
    QLabel *inputWeightLabel;
    QLabel *outputFatLabel;
    QLabel *outputCarLabel ;
    QLabel *outputProteinLabel;
    QLabel *outputEnergyLabel;
    QVBoxLayout *mainLayout;
    QStringList lst;

public:
    CalcWindow(QWidget *parent = 0);
    ~CalcWindow() {};
    void construct();
   // QPushButton getCalButton();
    //QPushButton addButton;

public slots:
    void onCalculateButtonClicked();
    void onAddButtonClicked1();
    void onAddButtonClicked2();
    void onCancelButton();

};
#endif // MAINWINDOW_H
